package com.xxxx.server.service;

import com.xxxx.server.pojo.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xxxx.server.pojo.Menu;
import com.xxxx.server.pojo.ResBean;
import com.xxxx.server.pojo.Role;

import javax.servlet.http.HttpServletRequest;
import javax.swing.*;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhoubin
 * @since 2021-10-22
 */
public interface IAdminService extends IService<Admin> {
/**
 *登陆之后返回token
 *  */
ResBean login(String username,String password,String code ,HttpServletRequest request);
/**
 *  根据用户名获取用户
 */

Admin  getAdminByUserName(String username);

/**
 * 根据用户id查询角色列表
 * */
List<Role> getRoles(Integer adminId);
}
